package com.taomus.browser;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Display;

public class Main {
	
	/**
	 * Launch the application.
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			Display display = Display.getDefault();
			BrowserShell shell = new BrowserShell(display);
			shell.open();
			shell.layout();
			while (!shell.isDisposed()) {
				if (!display.readAndDispatch()) {
					display.sleep();
				}
			}
			shell.close();
			display.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
